<?php
/** @var MailAsuntoController $this */
/** @var MailAsunto $model */

$this->menu = array(
    array('label' => Yii::t('AweCrud.app', 'Create'), 'icon' => 'plus', 'url' => array('create')),
);
?>
    <div class="widget blue">

        <div class="widget-title">
            <h4><i class="icon-envelope"></i> <?php echo Yii::t('AweCrud.app', 'Manage') ?> <?php echo MailAsunto::label(2) ?> </h4>
            <span class="tools">
                <a href="javascript:;" class="icon-chevron-down"></a>
            </span>
        </div>
        <div class="widget-body">
            <?php
            $this->widget('bootstrap.widgets.TbGridView', array(
                'id' => 'mail-asunto-grid',
                'type' => 'striped condensed',
                'dataProvider' => $model->activos()->search(),
                'columns' => array(
                    'nombre',
                    array(
                        'class' => 'CButtonColumn',
                        'template' => '{update} {delete}',
                        'buttons' => array(
                            'update' => array(
                                'label' => '<button class="btn btn-primary"><i class="icon-pencil"></i></button>',
                                'options' => array('title' => 'Actualizar'),
                                'imageUrl' => false,
                            ),
                            'delete' => array(
                                'label' => '<button class="btn btn-danger"><i class="icon-trash"></i></button>',
                                'options' => array('title' => 'Eliminar'),
                                'imageUrl' => false,
                            )
                        ),
                        'htmlOptions' => array(
                            'width' => '80',
                        )
                    ),
                ),
            ));
            ?>
        </div>
    </div>